#include<bits/stdc++.h>
using namespace std;
string get(string a,string b)
{
	if(a.size()<b.size())
	{
		string t=a;
		a=b;
		b=t;
	}
	reverse(a.begin(),a.end());
	reverse(b.begin(),b.end());
	vector<int>result;
	for(int i=0;i<a.size();i++)
	{
		int temp=0;
		if(i<b.size())
		{
			temp+=b[i]-'0';
		}
		temp+=a[i]-'0';
		result.push_back(temp);
	}
	for(int i=1;i<result.size();i++)
	{
		result[i]+=result[i-1]/10;
		result[i-1]%=10;
	}
	if(result[result.size()-1]>=10)
	{
		result.push_back(1);
		result[result.size()-2]%=10;
	}
	string s;
	for(int i=result.size()-1;i>=0;i--)
	{
		cout<<result[i];
		s+=to_string(result[i]);
	}
	return s;
	
}
int main(void)
{
	string a,b;
	cin>>a>>b;
	get(a,b);
}
